function add(x, y) {
	console.log(arguments.length);
	const a = Array.from(arguments.length);
	return x + y;
}

console.log(add(1));
console.log(add(1, 2));
console.log(add(1, 2, 3));